<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" href="http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/css/inc.css" />
	<link rel="stylesheet" href="http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/css/ico.css" />
	<script type='text/javascript' src='http://localhost/obj/movier/HDPHP/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>

	<script type="text/javascript" src='http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/Public/js/extend.js'></script>
	<script type="text/javascript" src='http://localhost/obj/movier/ldf/vmovier/Admin/Tpl/User/js/js.js'></script>
	<title>修改用户资料</title>
</head>
<body class="bgwhite-1">
	<div class="Menu">
		<a href="<?php echo U('index');?>"><i class="icon-user mr3 gray"></i>用户管理</a>
		<a class="act"><i class="icon-edit mr3 gray"></i>修改用户</a>
	</div>
<form action="" method="post">
	<input type="hidden" name='uid' value='<?php echo $field['uid'];?>' />
	<div class="p10">
		<table class="table form">
			<?php if($_SESSION['user']['level'] == 9){?>
				<tr class='fm f14'>
					<td class="tr f14 fm pct25"><span class="pr10">新密码</span></td>
					<td><input class="pct30" type="password" name="pwd"  /></td>
				</tr>
				<tr class='fm f14'>
					<td class="tr f14 fm pct25"><span class="pr10">昵称</span></td>
					<td><input class="pct30" type="text" name="nickname" value="<?php echo $field['nickname'];?>" /></td>
				</tr>
			
				<tr class='fm f14'>
					<td class="tr f14 fm pct25"><span class="pr10">级别</span></td>
					<td>
						<label for="l1">
							<input id="l1" class="vm" type="radio" name="level" value="0" <?php if($field['level'] == 0){?>checked="1"<?php }?> /> 普通用户
						</label>
						<label for="l2">
							<input id="l2" class="vm" type="radio" name="level" value="1" <?php if($field['level'] == 1){?>checked="1"<?php }?>  /> 管理员
						</label>
					</td>
				</tr>
			<?php  }else{ ?>
				<?php if($field['level'] <> 9){?>
					<tr class='fm f14'>
						<td class="tr f14 fm pct25"><span class="pr10">新密码</span></td>
						<td><input class="pct30" type="password" name="pwd"  /></td>
					</tr>
				<?php }?>
				<tr class='fm f14'>
					<td class="tr f14 fm pct25"><span class="pr10">昵称</span></td>
					<td><input class="pct30" type="text" name="nickname" value="<?php echo $field['nickname'];?>" /></td>
				</tr>
			<?php }?>
		</table>
	</div>
	<div class="fixBottom">
		<p class="p5 tc"><input type="submit" class="btn bgblack f20" value='确定操作' /></p>
	</div>
</form>
</body>
</html>